package com.flycms.module.soft.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.flycms.module.soft.dao.SoftApplyDao;
import com.flycms.module.soft.model.ApplyTool;
import com.flycms.module.soft.model.SoftApply;

/**
 *
 * <br/>Copyright 2020
 * <br/>All rights reserved
 * @author 沁言訫語
 * @version 2020年7月6日
 * @Date 2020年7月6日
 */

@Service
public class SoftApplyService {

    @Autowired
    SoftApplyDao softApplyDao;
    
    public int addSoftApply(SoftApply softApply) throws Exception {
        return softApplyDao.addSoftApply(softApply);
    }
    
    public List<SoftApply> getSoftApplyList(SoftApply softApply, Integer pageIndex, Integer pageSize) throws Exception {
        return softApplyDao.getSoftApplyList(softApply, pageIndex, pageSize);
    }
    
    public int getSoftApplyCount(SoftApply softApply) throws Exception {
        return softApplyDao.getSoftApplyCount(softApply);
    }
    
    public SoftApply querySoftApplyById(Long id) throws Exception {
        return softApplyDao.querySoftApplyById(id);
    }
    
    public int updateSoftApply(SoftApply softApply) throws Exception {
        return softApplyDao.updateSoftApply(softApply);
    }
    
    public int removeSoftApply(Long id) throws Exception {
        return softApplyDao.removeSoftApply(id);
    }
    
    public int addApplyTool(ApplyTool applyTool) throws Exception {
        return softApplyDao.addApplyTool(applyTool);
    }
    
    public List<ApplyTool> getApplyToolList(String toolName, Integer pageIndex, Integer pageSize) throws Exception {
        return softApplyDao.getApplyToolList(toolName, pageIndex, pageSize);
    }
    
    public int getApplyToolCount(String toolName) throws Exception {
        return softApplyDao.getApplyToolCount(toolName);
    }
    
    public ApplyTool queryApplyToolById(Long id) throws Exception {
        return softApplyDao.queryApplyToolById(id);
    }
    
    public ApplyTool queryApplyToolByName(String toolName) throws Exception {
        return softApplyDao.queryApplyToolByName(toolName);
    }
    
    public int updateApplyTool(ApplyTool applyTool) throws Exception {
        return softApplyDao.updateApplyTool(applyTool);
    }
    
    public int removeApplyTool(Long id) throws Exception {
        return softApplyDao.removeApplyTool(id);
    }
    
}
